package com.hqyj.onlineExamination.modules.exam.entity;

import com.hqyj.onlineExamination.modules.common.entity.AbstractEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 答卷
 */
@Entity
@Table(name = "exam_answer")
public class Answer extends AbstractEntity {
    //测试成绩id
    private int achievementId;
    //问题id
    private int questionId;
    //用户答案
    private String userAnswer;

    public int getAchievementId() {
        return achievementId;
    }

    public void setAchievementId(int achievementId) {
        this.achievementId = achievementId;
    }

    public int getQuestionId() {
        return questionId;
    }

    public void setQuestionId(int questionId) {
        this.questionId = questionId;
    }

    public String getUserAnswer() {
        return userAnswer;
    }

    public void setUserAnswer(String userAnswer) {
        this.userAnswer = userAnswer;
    }
}
